package bean04;

abstract class MilkTea {
    public abstract void prepare();

    public void addIngredients() {
        System.out.println("添加配料");
    }

    public void pack() {
        System.out.println("封闭打包");
    }
}

class PearlMilkTea extends MilkTea {
    @Override
    public void prepare() {
        System.out.println("准备牛奶与珍珠果粒制作珍珠奶茶");
    }
}

class CoconutMilkTea extends MilkTea {
    @Override
    public void prepare() {
        System.out.println("准备牛奶与椰果果粒制作椰果奶茶");
    }
}